@PACKAGE_INIT@

set(MESHLIB_INCLUDE_DIR "@PACKAGE_MR_INCLUDE_DIR@")
set(MESHLIB_THIRDPARTY_INCLUDE_DIR "@PACKAGE_MR_INCLUDE_DIR@/include")
link_directories("@PACKAGE_MR_MAIN_LIB_DIR@/lib")


get_filename_component(SELF_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)

set(MESHLIB_BUILD_MRVIEWER @MESHLIB_BUILD_MRVIEWER@)
set(MESHLIB_BUILD_CUDA @MESHLIB_BUILD_CUDA@)

include(${SELF_DIR}/MRMeshConfig.cmake)
if(MESHLIB_BUILD_MRVIEWER)
    include(${SELF_DIR}/MRViewerConfig.cmake)
    include(${SELF_DIR}/MRCommonPluginsConfig.cmake)
endif(MESHLIB_BUILD_MRVIEWER)
if(MESHLIB_BUILD_CUDA)
    include(${SELF_DIR}/MRCudaConfig.cmake)
endif(MESHLIB_BUILD_CUDA)

if(APPLE)
    message("You can install required packages via brew: ' xargs brew install < /Library/Frameworks/MeshLib.framework/Versions/Current/requirements/macos.txt '")
endif(APPLE)
